
#include "dumpFunct.h"


void intTo16Text(int* intVal, char* pStr, int count)
{

	*(pStr+10) = *intVal%16 + '0';
	*intVal/=16;
	*(pStr+9) = *intVal%16 + '0';
	*intVal/=16;
	*(pStr+7) = *intVal%16 + '0';
	*intVal/=16;
	*(pStr+6) = *intVal%16 + '0';
	*intVal/=16;
	*(pStr+4) = *intVal%16 + '0';
	*intVal/=16;
	*(pStr+3) = *intVal%16 + '0';
	*intVal/=16;
	*(pStr+1) = *intVal%16 + '0';
	*intVal/=16;
	*(pStr+0) = *intVal%16 + '0';

	*(pStr+2) = ' ';
	*(pStr+5) = ' ';
	*(pStr+8) = ' ';

	
	switch(count)
	{
	 case 2: 	*(pStr+2) = '\0'; break;
	 case 4: 	*(pStr+5) = '\0'; break;
	 case 6: 	*(pStr+8) = '\0'; break;
	 default:	*(pStr+11) = '\0';
	}
}


void drawTxt(char *pText)
{
		IntMasterDisable();
		OSRAM96x16x1StringDraw(pText, 0, 0);
		IntMasterEnable();
}
